<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
  <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
  
  <script>
  $(document).ready(function() {
    $("#sortable").sortable( {update : function () {
                                                 
          
//    var order = $('#sortable').sortable('serialize'); 
    var order = $('#sortable').sortable('toArray'); 
        //alert(order);
    
    

//      $("#info").load("process-sortable.php?"+order); 

            table = '[php_property:table2]';
            url = '/com/jQuery/jQuery_Sortable/php/saveNewOrder.php?table='+table+'&order='+order;                                     
            //prompt("", url); 
                    
                    
            $.get(url, function(data) {
//  $('.result').html(data);
                  //alert(data);
                if ($data != "") alert(data);
            });
            }
                                                 
          
                      
          
              //alert(document.getElementById('cmsText').innerHTML);
    /*        html = document.getElementById('cmsText').innerHTML;
              //alert(html);
            //var order = $('#test-list').sortable('serialize');
              //$("#info").load("process-sortable.php?"+order);
            
            $.post("saveEdit", { table: "snapol_page", id2: id2, text: html },
//$.post("saveEdit", { table: "snapol_page" },                   
   function(data){
     //alert("Data Loaded: " + data);
   });*/
                                               //}
                             });
  });
  </script>

